from selenium import webdriver
import time
exepath=r'E:\programlibs\chromedriver\chromedriver.exe'
# driver=webdriver.Chrome(executable_path=exepath)
#
# driver.get('https://www.baidu.com')

# print(driver.page_source)

# input=driver.find_element_by_name('wd')
# input.send_keys('python')

# time.sleep(5)
# input.clear()
#
# driver.get('https://www.douban.com/')
# rememberTag=driver.find_element_by_name('phone')
# rememberTag.send_keys('1234566')
#
# btn=driver.find_element_by_id('su')
# input=driver.find_element_by_id('kw')
# input.send_keys('自动化测试')
# btn.click()


#B站的测试代码
#
# driver=webdriver.Chrome(exepath)
# driver.get('https://www.bilibili.com/')
#
# inputTag=driver.find_element_by_class_name('search-keyword')
# inputTag.send_keys('running man')


#操作cookie

# driver=webdriver.Chrome(exepath)
# driver.get('https://baidu.com/')
#
# for cookie in driver.get_cookies():
#     print(cookie)
#
# driver.delete_cookie('domain')
#
# print(driver.get_cookie('domain'))
